#pragma once
#include <string>
using namespace std;

namespace GASPUMP
{
	typedef enum {Ready,Not_Ready} crd_stat;
typedef enum cardtype {DEBIT,CREDIT} cardtype;

class cardreader
{
public:



	cardreader(long,cardtype,int);
	cardreader();
	long getcardnum() const;
	crd_stat getstate() const;
	int getpinzip() const;
	
	bool check_pinzip(int ) const; 
	~cardreader(void);

	void ON(void);
	void OFF(void);

private:
	
	long c_num;
	cardtype m_type;
	int pinzip;
	crd_stat cardreader_status;
	
};

}
